package com.sec.android.app.myfiles.module.preview;

import com.sec.android.app.myfiles.provider.DbTableInfo;

public class PreviewCompressDbTableInfo extends DbTableInfo {

    private static PreviewCompressDbTableInfo sIntance;


    public static DbTableInfo getInstance() {
        if (sIntance == null) {
            sIntance = new PreviewCompressDbTableInfo();
        }
        return sIntance;
    }

    private PreviewCompressDbTableInfo() {
        mTableColumn.add(new DB_Column(COLUMN_ID.ID, "_id", "integer PRIMARY KEY AUTOINCREMENT"));
        mTableColumn.add(new DB_Column(COLUMN_ID.ARCHIVE_PATH, "archive_path", "text"));
        mTableColumn.add(new DB_Column(COLUMN_ID.ARCHIVE_ID, "archive_id", "text"));
        mTableColumn.add(new DB_Column(COLUMN_ID.PATH, "path", "text"));
        mTableColumn.add(new DB_Column(COLUMN_ID.NAME, "name", "text"));
        mTableColumn.add(new DB_Column(COLUMN_ID.SIZE, "size", "integer"));
        mTableColumn.add(new DB_Column(COLUMN_ID.DATE, "date", "integer"));
        mTableColumn.add(new DB_Column(COLUMN_ID.FILE_TYPE, "file_type", "integer"));
        mTableColumn.add(new DB_Column(COLUMN_ID.EXT, "ext", "text"));
        mTableColumn.add(new DB_Column(COLUMN_ID.IS_HIDDEN, "is_hidden", "integer"));
        mTableColumn.add(new DB_Column(COLUMN_ID.ITEM_COUNT, "item_count", "integer"));
        mTableColumn.add(new DB_Column(COLUMN_ID.ITEM_COUNT_HIDDEN, "item_count_hidden", "integer"));
    }

    @Override
    public String getTableName() {
        return "preview_compress";
    }

    @Override
    public boolean isRealDb() {
        return true;
    }
}
